package com.zys.background.common.web.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zys
 * @since 2022-11-14
 */
@Data
public class BaseEntity implements Serializable {
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;

  @TableField("create_time")
  private Date createTime;

  @TableField("update_time")
  private Date updateTime;

  @TableField("creator_id")
  private String creatorId;

  @TableField("updater_id")
  private String updaterId;

  @TableLogic
  @TableField("deleted")
  private boolean deleted;
}
